import request from '@/utils/request'

// 查询按能源划分列表
export function listEnergyBreakdown(query) {
  return request({
    url: '/result/energyBreakdown/list',
    method: 'get',
    params: query
  })
}

// 查询按能源划分详细
export function getEnergyBreakdown(id) {
  return request({
    url: '/result/energyBreakdown/' + id,
    method: 'get'
  })
}

// 新增按能源划分
export function addEnergyBreakdown(data) {
  return request({
    url: '/result/energyBreakdown',
    method: 'post',
    data: data
  })
}

// 修改按能源划分
export function updateEnergyBreakdown(data) {
  return request({
    url: '/result/energyBreakdown',
    method: 'put',
    data: data
  })
}

// 删除按能源划分
export function delEnergyBreakdown(id) {
  return request({
    url: '/result/energyBreakdown/' + id,
    method: 'delete'
  })
}

// 导出按能源划分
export function exportEnergyBreakdown(query) {
  return request({
    url: '/result/energyBreakdown/export',
    method: 'get',
    params: query
  })
}